<!--{eval $friendsname = array(1 => '{lang friendname_1}',2 => '{lang friendname_2}',3 => '{lang friendname_3}',4 => '{lang friendname_4}');}-->
<!--{eval $home_run = true;}-->
<!--{if !$_G['inajax']}-->
<!--{eval $pageview = lang('home/template','album');}-->
<!--{subtemplate home/space_header}-->
<!--{template home/space_site_left}-->
<!--{subtemplate home/space_short_profile}-->
<ul id="woogtv" class="tb cl">
	<li$actives[all]><a href="home.php?mod=space&username=$space[username]&do=album&view=all">{lang view_all}</a></li>
    <li$actives[we]><a href="home.php?mod=space&username=$space[username]&do=album&view=we">{lang friend_album}</a></li>
    <li$actives[me]><a href="home.php?mod=space&username=$space[username]&do=album&view=me">{lang my_album}</a></li>
    <!--{if $space['self']}-->
    <li class="o y"><a href="home.php?mod=spacecp&ac=upload">{lang upload_pic}</a></li>
    <!--{/if}-->
</ul>
<div class="bm block nobtop">
    <div class="bm_c dxb_bc">
        <div class="ptw">
<!--{else}-->
<!--{template common/header_ajax}-->
<!--{/if}-->
        <!--{if $picmode}-->
            <!--{if $pricount && !$_G['inajax']}-->
            <p class="mbw">{lang hide_pic}</p>
            <!--{/if}-->
            <!--{if $count}-->
            <!--{if !$_G['inajax']}-->
            <ul class="ml mlp cl"  id="feed_div">
            <!--{/if}-->
                <!--{loop $list $key $value}-->
                <li class="d">
                    <div class="c">
                        <a href="home.php?mod=space&username=$value[username]&do=album&picid=$value[picid]"><!--{if $value[pic]}--><img src="$value[pic]" alt="" /><!--{/if}--></a>
                    </div>
                    <p class="ptm"><a href="home.php?mod=space&username=$value[username]&do=album&id=$value[albumid]" class="xi2">$value[albumname]</a></p>
                    <span><a href="home.php?mod=space&username=$value[username]">$value[username]</a></span>
                </li>
                <!--{/loop}-->
            <!--{if !$_G['inajax']}-->
            </ul>
            <div id="load_more"></div>
        	<div id="loading_more_feed" style="display:none"></div>
            <!--{/if}-->
            <!--{else}-->
            <div class="emp">{lang no_album}</div>
            <!--{/if}-->
        <!--{else}-->
            <!--{if $searchkey  && !$_G['inajax']}-->
            <p class="mbw">{lang follow_search_album} <span style="color: red; font-weight: 700;">$searchkey</span> {lang doing_record_list}</p>
            <!--{/if}-->
            <!--{if $pricount  && !$_G['inajax']}-->
            <p class="mbw">{lang hide_album}</p>
            <!--{/if}-->
            <!--{if $count}-->
            <!--{if !$_G['inajax']}-->
            <ul class="ml mla cl"  id="feed_div">
           	<!--{/if}-->
                <!--{loop $list $key $value}-->
                <!--{eval $pwdkey = 'view_pwd_album_'.$value['albumid'];}-->
                <li>
                    <div class="c">
                        <a href="home.php?mod=space&username=$value[username]&do=album&id=$value[albumid]" {if $value[uid]!=$_G[uid] && $value[friend]=='4' && $value[password] && empty($_G[cookie][$pwdkey])} onclick="showWindow('list_album_$value[albumid]', this.href, 'get', 0);"{/if}><!--{if $value[pic]}--><img src="$value[pic]" alt="$value[albumname]" /><!--{/if}--></a>
                    </div>
                    <p class="ptn"><a href="home.php?mod=space&username=$value[username]&do=album&id=$value[albumid]" {if $value[uid]!=$_G[uid] && $value[friend]=='4' && $value[password] && empty($_G[cookie][$pwdkey])} onclick="showWindow('list_album_$value[albumid]', this.href, 'get', 0);"{/if} class="xi2"><!--{if $value[albumname]}-->$value[albumname]<!--{else}-->{lang default_album}<!--{/if}--></a><!--{if $value[picnum]}--> ($value[picnum]) <!--{/if}--></p>
                    <!--{if $value[uid]==$_G[uid]}-->
                        <p class="xg1"><a href="home.php?mod=spacecp&ac=album&op=editpic&albumid=$value[albumid]">{lang edit}</a> <a href="home.php?mod=spacecp&ac=upload&albumid=$value[albumid]">{lang upload}</a>
                        </p>
                    <!--{else}-->
                        <p><a href="home.php?mod=space&username=$value[username]">$value[username]</a></p>
                    <!--{/if}-->
                    <!--{if $_GET[view]!='me'}--><span>{lang update} <!--{date($value[updatetime], 'H:i d/m')}--></span><!--{/if}-->
                </li>
                <!--{/loop}-->
                <!--{if $space[self] && $_GET['view']=='me'  && !$_G['inajax']}-->
                <li>
                    <div class="c">
                        <a href="home.php?mod=space&username=$space[username]&do=album&id=-1"><img src="{IMGDIR}/nophoto.gif" alt="{lang default_album}" /></a>
                    </div>
                    <p class="ptn xi2"><a href="home.php?mod=space&username=$space[username]&do=album&id=-1">{lang default_album}</a></p>
                </li>
                <!--{/if}-->
                <!--{if !$_G['inajax']}-->
            </ul>
            <div id="load_more"></div>
        	<div id="loading_more_feed" style="display:none"></div>
            <!--{/if}-->
            <!--{else}-->
                <!--{if $space[self] && $_GET['view']=='me' && !$_G['inajax']}-->
                    <ul class="ml mla cl">
                        <li>
                            <div class="c">
                                <a href="home.php?mod=space&username=$space[username]&do=album&id=-1"><img src="{IMGDIR}/nophoto.gif" alt="{lang default_album}" /></a>
                            </div>
                            <p class="ptn xi2"><a href="home.php?mod=space&username=$space[username]&do=album&id=-1">{lang default_album}</a></p>
                        </li>
                    </ul>
                <!--{else}-->
                    <div class="emp">{lang no_album}</div>
                <!--{/if}-->
            <!--{/if}-->
    
        <!--{/if}-->
<!--{if !$_G['inajax']}-->
        </div>
	</div>
</div>
<!--{template home/space_site_right}-->
<script type="text/javascript">
function fuidgoto(fuid) {
	var parameter = fuid != '' ? '&fuid='+fuid : '';
	window.location.href = 'home.php?mod=space&do=album&view=we'+parameter;
}
	var loadfeed = true;
	var url = 'home.php?mod=space&uid=$space[uid]&do=album&type=$_G[gp_type]&view={$_GET[view]}';
</script>
<!--{template common/footer}-->
<!--{else}-->
<!--{template common/footer_ajax}-->
<!--{/if}--> 